package testSayAct;

import static org.junit.Assert.*;
import junit.framework.TestCase;
import org.junit.*;

import card.SayActCard;
import dice.RollDice;
import sayAct.sayActProcessor;
import player.*;

public class testSayActProcessor {
	
	@Test
	public void testUpdateScore1(){
		Player p = new Player();
		int expected = p.getSEPoint() + 3;
		SayActCard saCard = new SayActCard();
		sayActProcessor sp = new sayActProcessor();
		sp.updateScore(p, saCard.getSayActArr()[0]);
		int actual = p.getSEPoint();
		
		assertEquals(expected,actual);
	}
	
	@Test
	public void testUpdateScore2(){
		Player p = new Player();
		int expected = p.getSEPoint() + 4;
		SayActCard saCard = new SayActCard();
		sayActProcessor sp = new sayActProcessor();
		sp.updateScore(p, saCard.getSayActArr()[2]);
		int actual = p.getSEPoint();
		
		assertEquals(expected,actual);
	}
	
}
